/* 练习详情页面样式 */

/* 页面容器 */
.practice-result-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 头部容器 */
.practice-result-header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.6s ease-out;
}

/* 客户端头部 */
.practice-result-client-header {
    padding: 15px 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo样式 */
.client-logo {
    display: flex;
    align-items: center;
    animation: fadeInLeft 0.8s ease-out;
}

.client-logo .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.client-logo .logo img {
    height: 32px;
    width: auto;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.client-logo .logo img:hover {
    transform: scale(1.1);
}

.client-logo .logo span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 用户信息容器 */
.user-info-container {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInRight 0.8s ease-out;
}

/* 面包屑导航样式 */
.header-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-breadcrumb .cxd-Breadcrumb-item {
    color: #666;
    font-size: 14px;
}

.header-breadcrumb .cxd-Breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-breadcrumb .cxd-Breadcrumb-item a:hover {
    color: #0056b3;
}

.header-breadcrumb .cxd-Breadcrumb-item:last-child {
    color: #333;
    font-weight: 500;
}

/* 内容容器 */
.practice-result-content-container {
    margin-top: 80px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out;
}

/* 面板样式 */
.practice-result-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    animation: slideInUp 0.6s ease-out;
    position: relative;
}

.practice-result-panel:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.practice-result-panel .cxd-Panel-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border: none;
    position: relative;
    overflow: hidden;
}

.practice-result-panel .cxd-Panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

.practice-result-panel-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.practice-result-panel .cxd-Panel-body {
    padding: 20px;
}

/* 练习结果信息面板 */
.practice-result-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.practice-name {
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
}

.practice-info .info-item {
    margin-bottom: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.practice-info .info-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* 分数显示样式 */
.score-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    position: relative;
    overflow: hidden;
}

.score-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

.score-number {
    font-size: 3rem !important;
    font-weight: bold !important;
    line-height: 1 !important;
    position: relative;
    z-index: 1;
}

.score-total {
    font-size: 1.2rem !important;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.score-label {
    font-size: 0.9rem !important;
    margin-top: 8px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* Bootstrap 网格系统样式 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .col-md-3, .col-md-4, .col-md-6, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.mr-3 {
    margin-right: 1rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.text-center {
    text-align: center !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

/* Bootstrap 卡片样式 - 增强版 */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: cardFloat 0.6s ease-out forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
    opacity: 0;
    transform: translateY(20px);
}

.card:nth-child(1) { --card-index: 1; }
.card:nth-child(2) { --card-index: 2; }
.card:nth-child(3) { --card-index: 3; }
.card:nth-child(4) { --card-index: 4; }

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.card-body {
    flex: 1 1 auto;
    padding: 1rem;
}

.border-primary {
    border-color: #007bff !important;
}

.border-success {
    border-color: #28a745 !important;
}

.border-danger {
    border-color: #dc3545 !important;
}

.border-info {
    border-color: #17a2b8 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.text-primary {
    color: #007bff !important;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-muted {
    color: #6c757d !important;
}

.card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberPulse 2s ease-in-out infinite;
}

.card.border-success h3 {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card.border-danger h3 {
    background: linear-gradient(45deg, #dc3545, #c82333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card.border-info h3 {
    background: linear-gradient(45deg, #17a2b8, #138496);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card small {
    font-size: 0.875rem;
    font-weight: 500;
}

.card i {
    transition: all 0.3s ease;
}

.card:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* 操作按钮样式 */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.result-actions .cxd-Button {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-actions .cxd-Button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.result-actions .cxd-Button:hover::before {
    left: 100%;
}

.result-actions .cxd-Button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 加载状态 */
.practice-result-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.practice-result-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.practice-result-loading-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 动画效果 */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cardFloat {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .practice-result-client-header {
        padding: 12px 15px;
    }

    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .client-logo .logo span {
        font-size: 16px;
    }

    .practice-result-content-container {
        margin-top: 100px;
        padding: 15px;
    }

    .practice-result-panel-title {
        font-size: 18px;
    }

    .practice-result-panel .cxd-Panel-body {
        padding: 15px;
    }

    .score-number {
        font-size: 2rem !important;
    }

    .result-actions {
        flex-direction: column;
        align-items: center;
    }

    .result-actions .cxd-Button,
    .result-actions .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .practice-result-summary {
        padding: 15px !important;
    }

    .card h3 {
        font-size: 1.5rem;
    }

    .card i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .practice-result-client-header {
        padding: 10px 12px;
    }

    .practice-result-content-container {
        margin-top: 120px;
        padding: 12px;
    }

    .practice-result-panel-title {
        font-size: 16px;
    }

    .practice-result-panel .cxd-Panel-body {
        padding: 12px;
    }

    .score-number {
        font-size: 1.8rem !important;
    }

    .score-total {
        font-size: 1rem !important;
    }

    .score-label {
        font-size: 0.8rem !important;
    }

    .card h3 {
        font-size: 1.25rem;
    }

    .card i {
        font-size: 1.25rem;
    }

    .card small {
        font-size: 0.75rem;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .practice-result-panel {
        border: 2px solid #000;
    }

    .card {
        border: 2px solid #000;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* 按钮样式增强 */
.result-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.result-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.result-actions .btn:active {
    transform: translateY(0);
}

.result-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.result-actions .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
}

.result-actions .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.result-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4245 100%);
    color: white;
}

.result-actions .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.result-actions .btn-info:hover {
    background: linear-gradient(135deg, #148ea1 0%, #117a8b 100%);
    color: white;
}

/* 打印样式 */
@media print {
    .practice-result-header-container,
    .result-actions {
        display: none;
    }

    .practice-result-content-container {
        margin-top: 0;
        padding: 0;
    }

    .practice-result-panel {
        box-shadow: none;
        border: 1px solid #000;
    }
} 